import matplotlib.pyplot as plt
import numpy as np

Q21 = np.genfromtxt('./Data/N=5/Q_allocated_0.txt', delimiter=',', )
Q22 = np.genfromtxt('./Data/N=5/Q_allocated_1.txt', delimiter=',', )
Q23 = np.genfromtxt('./Data/N=5/Q_allocated_2.txt', delimiter=',', )
Q24 = np.genfromtxt('./Data/N=5/Q_allocated_3.txt', delimiter=',', )
Q25 = np.genfromtxt('./Data/N=5/Q_allocated_4.txt', delimiter=',', )
plt.matshow(Q21,)
plt.title('Matrix A1')
# 显示图形
plt.matshow(Q22,)
plt.title('Matrix A2')
plt.matshow(Q23,)
plt.title('Matrix A3')
plt.matshow(Q24,)
plt.title('Matrix A4')
plt.matshow(Q25,)
plt.title('Matrix A5')
plt.show()